﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Collections.ObjectModel;
using System.Windows.Media.Imaging;
using System.Xml.Serialization;

namespace ThuPhap.Models
{

    public class StoredItem
    {
        public StoredItem()
        {     }

        private int id;
        public int ID
        {
            set
            {
                if (value != id)
                    id = value;
            }
            get { return id; }
        }

        private string name;

        public string Name
        {
            get { return name; }
            set
            {
                if (value != name)
                {
                    name = value;
                }
            }
        }

        private string description;

        public string Description
        {
            get { return description; }
            set
            {
                if (description != value)
                {
                    description = value;
                }
            }
        }

        private DateTime date;

        public DateTime Date
        {
            get { return date; }
            set
            {
                if (date != value)
                {
                    date = value;
                }
            }
        }


        private byte[] background;

        public byte[] Background
        {
            get { return background; }
            set
            {
                if (background != value)
                {
                    background = value;
                }
            }
        }

        private byte[] image;

        public byte[] Image
        {
            get { return image; }
            set
            {
                if (image != value)
                {
                    image = value;
                }
            }
        }

        public double BackgroundWidth { get; set; }
        public double BackgroundHeight { get; set; }

        private ObservableCollection<TextControlInfo> textControl = new ObservableCollection<TextControlInfo>();

        public ObservableCollection<TextControlInfo> TextControl
        {
            get { return textControl; }
            set
            {
                if (textControl != value)
                {
                    textControl = value;
                }

            }
        }

    }
}
